import hasthi.container.XsulBasedWSDMProcessor;

import java.util.Properties;
import java.util.concurrent.Semaphore;

import hasthi.wsdm.*;
import hasthi.common.*;

import javax.xml.namespace.QName;


public class FaultyService {
    public static void main(String[] args) throws Throwable {
        String mngBootstrapNode = "linbox3.extreme.indiana.edu";
        final QName serviceName = new QName("DummyService");
        Properties properties = new Properties();
        properties.put(HasthiOptions.BOOTSTRAP_NODE,mngBootstrapNode);
        
        ManagedServiceHandle systemHandle = new ManagedServiceHandle(serviceName,serviceName) {
            public void shutDown() throws HasthiException {
                // TODO Auto-generated method stub
        
            }
        
            public String getSystemEndPoint() {
                return "http://linbox3.extreme.indiana.edu:5345";
            }
        
        };
        
        ManagementAgentContext context = new ManagementAgentContext(new BaseContext(properties));
        XsulBasedWSDMProcessor processor = new XsulBasedWSDMProcessor(context);
        processor.addResource(systemHandle);
        new Semaphore(0,true).acquire();
    }
}
